package com.yic.module.system.convert.code;

import java.util.*;

import com.yic.framework.common.pojo.PageResult;

import com.yic.module.system.controller.admin.code.vo.*;
import com.yic.module.system.dal.dataobject.code.CodeRuleDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 编号规则明细 Convert
 *
 * @author 系统管理员
 */
@Mapper
public interface CodeRuleConvert {

    CodeRuleConvert INSTANCE = Mappers.getMapper(CodeRuleConvert.class);

    CodeRuleDO convert(CodeRuleCreateReqVO bean);

    CodeRuleDO convert(CodeRuleUpdateReqVO bean);

    CodeRuleRespVO convert(CodeRuleDO bean);

    List<CodeRuleRespVO> convertList(List<CodeRuleDO> list);

    PageResult<CodeRuleRespVO> convertPage(PageResult<CodeRuleDO> page);

    List<CodeRuleExcelVO> convertList02(List<CodeRuleDO> list);

    List<CodeRuleDO> convertList03(List<CodeRuleCreateReqVO> createReqVOS);

    List<CodeRuleCreateReqVO> convertList04(List<CodeCreateReqVO.Rule> rules);

    List<CodeRespVO.Rule> convertList05(List<CodeRuleDO> codeRules);

    List<CodeRuleCreateReqVO> convertList06(List<CodeCreateReqVO.Rule> rules);
}
